package priv.bestbeat.cloud.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import priv.bestbeat.cloud.user.entity.UserEntity;
import priv.bestbeat.cloud.user.entity.union.RBACUserEntity;

/**
 * @author system
 * @date 2021-05-25 14:24:39
 */
@Mapper
public interface IUserMapper extends BaseMapper<UserEntity> {

    /**
     * 根据 username 获取 用户信息、角色信息和权限信息
     * @param username
     * @return
     */
    RBACUserEntity selectRBACUserByUsername(String username);

}
